﻿<%@ Page Title="Editar hóspede" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EditarHospede.aspx.cs" Inherits="TCC_Hotel.Apresentacao.Hospedes.EditarHospede" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
         .style1
        {
            width: 35%;
        }
        .style2
        {
            width: 35%;
        }
        .style3
        {
            width: 35%;
        }
        .style5
        {
            width: 230px;
        }
        .style7
        {
           width: 30%;
        }
        .style8
        {
            width: 441px;
        }
        .style9
        {
            width: 534px;
        }
        .style10
        {
            width: 30%;
        }
    </style>
    <script src="../../Scripts/Mascaras.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.7.2.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <asp:Label ID="lblAviso2" runat="server" Text="- Os campos com * são obrigatórios"
            ForeColor="Red"></asp:Label>
    </div>
    <p class="title-telas">
        Editar hóspede
    </p>
    <div style="margin-bottom: 0px">
        <fieldset>
            <legend id="legend3" runat="server">
                <asp:Label ID="Label3" runat="server" Text="Informações Pessoais"></asp:Label>
            </legend>
            <table style="width: 100%;">
                <tr>
                    <td class="style1">
                        <asp:Label ID="lblNome" runat="server" Text="Nome:"></asp:Label>
                        <asp:Label ID="lblValidacaoNome" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataTexto(this,event,'Aaa');" ID="txtNome" runat="server"
                            Width="200px" MaxLength="35"></asp:TextBox>
                    </td>
                    <td class="style10">
                        <asp:Label ID="lblNascimento" runat="server" Text="Data de Nascimento:"></asp:Label>
                        <asp:Label ID="lblValidacaoNascimento" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataData(this,event);" ID="txtNascimento" runat="server"
                            Width="150px" MaxLength="10"></asp:TextBox>
                    </td>
                    <td class="style9">
                        <asp:Label ID="Label1" runat="server" Text="Hóspede faturado:"></asp:Label><br />
                        <asp:CheckBox ID="ckbFaturado" runat="server" AutoPostBack="True" Enabled="False" />
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend id="legend4" runat="server">
                <asp:Label ID="lblContato" runat="server" Text="Contato"></asp:Label>
            </legend>
            <table style="width: 100%;">
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblTelefone1" runat="server" Text="Telefone Residencial 1:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtDDDTelefone1" runat="server"
                            Width="30px" MaxLength="2"></asp:TextBox>
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtTelefone1" runat="server"
                            Width="100px" MaxLength="8"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblCelular1" runat="server" Text="Celular 1:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtDDDCelular1" runat="server"
                            Width="30px" MaxLength="2"></asp:TextBox>
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtCelular1" runat="server"
                            Width="100px" MaxLength="8"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblTelefone2" runat="server" Text="Telefone Residencial 2:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtDDDTelefone2" runat="server"
                            Width="30px" MaxLength="2"></asp:TextBox>
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtTelefone2" runat="server"
                            Width="100px" MaxLength="8"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblCelular2" runat="server" Text="Celular 2:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtDDDCelular2" runat="server"
                            Width="30px" MaxLength="2"></asp:TextBox>
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtCelular2" runat="server"
                            Width="100px" MaxLength="8"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblEmail" runat="server" Text="Email:"></asp:Label><br />
                        <asp:TextBox ID="txtEmail" runat="server" Width="180px" MaxLength="40"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </fieldset>
        <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="0">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:UpdateProgress ID="updateProgress" runat="server">
                    <ProgressTemplate>
                        <div style="position: fixed; text-align: center; height: 100%; width: 100%; top: 0;
                            right: 0; left: 0; z-index: 9999999; background-color: #000000; opacity: 0.7;">
                            <asp:Image ID="imgUpdateProgress" runat="server" ImageUrl="~/Imagens/loading.gif"
                                AlternateText="Loading ..." ToolTip="Loading ..." Style="padding: 10px; position: fixed;
                                top: 45%; left: 50%;" />
                        </div>
                    </ProgressTemplate>
                </asp:UpdateProgress>
                <fieldset>
                    <legend id="legend5" runat="server">
                        <asp:Label ID="lblEndereco" runat="server" Text="Endereço"></asp:Label>
                    </legend>
                    <table style="width: 100%;">
                        <tr>
                            <td class="style5">
                                <asp:Label ID="lblCEP" runat="server" Text="CEP:"></asp:Label><br />
                                <asp:TextBox onkeyup="formataCEP(this,event);" ID="txtCEP" runat="server" Width="150px"
                                    MaxLength="9"></asp:TextBox>
                                <asp:Button ID="btnBuscaCEP" runat="server" OnClick="btnBuscaCEP_Click" class="BotaoCEP" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                <asp:Label ID="lblLogradouro" runat="server" Text="Logradouro:"></asp:Label><br />
                                <asp:TextBox ID="txtLogradouro" runat="server" Width="225px" MaxLength="40"></asp:TextBox>
                            </td>
                            <td class="style7">
                                <asp:Label ID="lblBairro" runat="server" Text="Bairro:"></asp:Label><br />
                                <asp:TextBox ID="txtBairro" runat="server" Width="200px" MaxLength="30"></asp:TextBox>
                            </td>
                            <td class="style8">
                                <asp:Label ID="lblNumero" runat="server" Text="Número:"></asp:Label><br />
                                <asp:TextBox onkeyup="formataInteiro(this,event);" ID="txtNumero" runat="server"
                                    Width="70px" MaxLength="6"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style5">
                                <asp:Label ID="lblCidade" runat="server" Text="Cidade:"></asp:Label><br />
                                <asp:TextBox onkeyup="formataTexto(this,event,'Aaa');" ID="txtCidade" runat="server"
                                    Width="150px" MaxLength="30"></asp:TextBox>
                            </td>
                            <td class="style7">
                                <asp:Label ID="Estado" runat="server" Text="Estado:"></asp:Label><br />
                                <asp:DropDownList ID="ddlEstado" runat="server" EnableTheming="True">
                                </asp:DropDownList>
                            </td>
                            <td class="style8">
                                <asp:Label ID="lblComplemento" runat="server" Text="Complemento:"></asp:Label><br />
                                <asp:TextBox ID="txtComplemento" runat="server" Width="200px" MaxLength="40"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </ContentTemplate>
        </asp:UpdatePanel>
        <fieldset>
            <legend id="legend2" runat="server">
                <asp:Label ID="Label2" runat="server" Text="Documentação"></asp:Label></legend>
            <table style="width: 100%;">
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblRG" runat="server" Text="RG:"></asp:Label>
                        <asp:Label ID="lblValidacaoRG" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataRG(this,event);" ID="txtRG" runat="server" Width="115px"
                            MaxLength="12"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblCPF" runat="server" Text="CPF:"></asp:Label>
                        <asp:Label ID="lblValidacaoCPF" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataCPF(this,event);" ID="txtCPF" runat="server" Width="165px"
                            MaxLength="14"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </fieldset>
        <asp:Panel ID="plnFaturado" runat="server" Visible="false">
            <fieldset>
                <legend id="legend1" runat="server">
                    <asp:Label ID="lblLegenda" runat="server" Text="Empresa"></asp:Label></legend>
                <table style="width: 100%;">
                    <tr>
                        <td class="style2">
                            <asp:Label ID="lblEmpresa" runat="server" Text="Empresa:"></asp:Label>
                            <asp:Label ID="lblValidacaoEmpresa" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                            <asp:DropDownList ID="ddlEmpresas" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Label ID="lblCargo" runat="server" Text="Cargo:"></asp:Label><br />
                            <asp:TextBox ID="txtCargoEmpresa" runat="server" Width="165px" MaxLength="29"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </asp:Panel>
        <div align="left" style="width: 48%; float: left">
            <asp:Button ID="btnSalvar" runat="server" Text="Salvar" Width="100px" OnClick="btnSalvar_Click" />
            <asp:Button ID="btnLimpar" runat="server" Text="Limpar" Width="100px" OnClick="btnLimpar_Click" />
            <asp:Button ID="btnVoltar" runat="server" Text="Voltar" Width="100px" OnClick="btnVoltar_Click" />
        </div>
    </div>
</asp:Content>
